package cn.zyq.ykb.system.enums.core;

public enum ResponseCodeEnum {
    SUCCESS(200, "成功"),
    ACCESS_FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "找不到路由"),
    ERROR(500, "系统异常，请稍后再试"),
    INVALID_PARAM(501, "无效的参数"),
    BUSYNESS(502, "服务器繁忙，请稍后再试"),
    NULL_VALUE(600, "不允许为空值"),
    PERMISSION_DENIED(601, "权限不足"),
    PERMISSION_DENIED_LIKE(602, "点赞权限不足"),
    PERMISSION_DENIED_COMMENT(603, "评论权限不足"),
    PERMISSION_DENIED_SHARE(604, "转发权限不足"),
    PERMISSION_DENIED_COLLECT(605, "收藏权限不足"),
    PERMISSION_DENIED_ADD_BLOG(606, "发布权限不足"),
    // 1000 - 1999 管理端错误
    MGT_NO_LOGIN(1000, "未登录"),
    MGT_PWD_ERROR(1001, "管理系统登录密码错误"),
    // 2000 - 2999 管理端错误
    MP_NO_LOGIN(2000, "未登录"),
    App_NO_LOGIN(2001, "该微信已绑定其它手机号，请更换微信重新绑定"),
    // 3000 - 3999 移动端错误
    H5_NO_LOGIN(3000, "未登录"),
    APP_NO_LOGIN(3100,"登录过期，请重新登录"),
    H5_NO_LOGIN_DEV(3001, "调试模式，账号不存在"),
    H5_LOGIN_FAIL(3002, "登录失败"),
    H5_UNSUBSCRIBE(3003, "未关注"),
    H5_USER_DEL(3004, "已删除"),
    H5_USER_REGISTERED(3005, "已预约"),
    H5_REGISTER_IS_OVER(3005, "预约已结束"),
    H5_RUN_DELIVERY_IS_NULL(3006, "送货员信息未录入"),
    H5_RUN_DELIVERY_IS_Exist(3007, "该送货员信息以及存在"),
    H5_USER_WALLET(3008, "余额不足请充值"),
    H5_ORDER_STATUS_FAIL(3009, "订单状态不是未接单"),
    ;

    private Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
